<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

        // 三种状态
        /*
        1. pending，默认状态
        2.fulfilled 在回调函数调取resolve方法，promise会变成fulfilled
        3.rejected 在回调函数调取reject方法，promise会变成rejected


        */
        let p = new Promise(function(resolve, reject) {
            // resolve()
            reject(1)
        })
        console.log(p)



    </script>
</body>
</html>